import { Spin } from 'antd'
import { CSSProperties } from 'react'

interface Props {
  styles?: CSSProperties
}

export default function Loading({ styles }: Props) {
  return (
    <div style={styles} className="flex items-center justify-center h-full">
      <Spin spinning={true} />
    </div>
  )
}
